package com.job.servicejob.controller;


import com.job.commonutils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping ("/jobservice/user")
@CrossOrigin
public class jobLoginController {


    //login
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }
    //info

    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","http://localhost:9528/favicon.ico");
    }
    //logout
    @PostMapping("logout")
    public R logout(){
        return R.ok();
    }

}
